package cn.usian.config.feign;

import cn.usian.dto.basicInformation.log.BaseOperationLogDto;
import cn.usian.pojo.Result;
import cn.usian.pojo.basicInformation.log.BaseOperationLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("basicInformation-service")
public interface LogFeign {

    @PostMapping("/log/save")
    public Result save(@RequestBody BaseOperationLog logInfo);

    @GetMapping("/log/list")
    public Result getLogList(BaseOperationLogDto logDto);
}
